﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Text;

namespace WebBanThuoc.Function
{
    public class Encryption
    {
        public static string Encrypt(string key)
        {
            return Convert.ToBase64String(Encoding.Unicode.GetBytes(key));
        }

        public static string Decrypt(string key)
        {
            return Encoding.Unicode.GetString(Convert.FromBase64String(key));
        }
    }
}